package org.jeecg.modules.meter.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.meter.entity.MeterRecord;
import org.jeecg.modules.meter.mapper.MeterRecordMapper;
import org.jeecg.modules.meter.service.IMeterRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 改状态记录保存表
 * @Author: jeecg-boot
 * @Date:   2019-12-05
 * @Version: V1.0
 */
@Service
public class MeterRecordServiceImpl extends ServiceImpl<MeterRecordMapper, MeterRecord> implements IMeterRecordService {

    @Autowired
    private MeterRecordMapper meterRecordMapper;

    @Override
    public IPage<MeterRecord> selectSqlList(Page<MeterRecord> page, MeterRecord meterRecord, List<String> projectIds) {
        return page.setRecords(meterRecordMapper.selectSqlList(page,meterRecord,projectIds));
    }
}
